// src/utils/auth.js
export function getToken() {
    return localStorage.getItem('token') || sessionStorage.getItem('token') || ''
}

export function setToken(token, remember = false) {
    if (remember) {
        localStorage.setItem('token', token)
    } else {
        sessionStorage.setItem('token', token)
    }
}

export function removeToken() {
    localStorage.removeItem('token')
    sessionStorage.removeItem('token')
}